home *** CD-ROM | disk | FTP | other *** search
- package swings
- {
- import flash.events.TimerEvent;
- import flash.filters.BitmapFilterQuality;
- import flash.filters.BitmapFilterType;
- import flash.filters.GlowFilter;
- import flash.filters.GradientGlowFilter;
- import flash.text.TextField;
- import flash.text.TextFormat;
- import flash.utils.Timer;
-
- public class BonusText extends TextField
- {
-
-
- public var format:TextFormat;
-
- public var glow:GlowFilter;
-
- public var filterArray:Array;
-
- public function BonusText(param1:Number = 4000)
- {
- var _loc2_:Number = NaN;
- var _loc3_:GradientGlowFilter = null;
- var _loc4_:Timer = null;
- super();
- this.selectable = false;
- _loc2_ = param1;
- _loc3_ = new GradientGlowFilter();
- _loc3_.distance = 0;
- _loc3_.angle = 45;
- _loc3_.colors = [0,16711075];
- _loc3_.alphas = [0,1];
- _loc3_.ratios = [0,255];
- _loc3_.blurX = 10;
- _loc3_.blurY = 10;
- _loc3_.strength = 2;
- _loc3_.quality = BitmapFilterQuality.HIGH;
- _loc3_.type = BitmapFilterType.OUTER;
- glow = new GlowFilter(16711075,0.3,24,24,2,1);
- filterArray = new Array();
- filterArray.push(glow);
- format = new TextFormat();
- format.font = "Adobe Garamond Pro Bold";
- format.color = 16777215;
- format.size = 16;
- this.alpha = 0.5;
- this.defaultTextFormat = format;
- this.filters = [_loc3_];
- (_loc4_ = new Timer(_loc2_,1)).addEventListener("timer",timerHandler);
- _loc4_.start();
- }
-
- private function timerHandler(param1:TimerEvent) : void
- {
- parent.removeChild(this);
- }
- }
- }
-